$(function(){
	alert($.cookie('mercode'));
	c_start=document.cookie.indexOf("mercode");
	alert(c_start);
	if (window.top==window.self ){  
		if(c_start=='-1'){
			window.location.href='?c=user&m=login';	
		}else{
			window.top.location="?c=admin&m=index"; 
		}
					 
	} 
})